package com.hulk.hyena.project.monitor.job.task;


import lombok.extern.slf4j.Slf4j;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.messaging.simp.SimpMessagingTemplate;
import org.springframework.stereotype.Component;


@Slf4j
@Component
public class WelcomeJob implements Job {



//    @Autowired
//    SimpMessagingTemplate template;

    @Override
    public void execute(JobExecutionContext arg0) throws JobExecutionException {
        //template.convertAndSend("/topic/getResponse", "欢迎体验hyena,这是一个任务计划，使用了websocket和quzrtz技术。" );
        log.info("欢迎体验hyena,这是一个任务计划，使用了websocket和quzrtz技术。" );
    }

}